package dissertation.examples.ejb11.entity;

import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;
import java.rmi.RemoteException;
import java.util.Enumeration;

public interface ProductHome extends EJBHome {
    Product create(String productId, String name, double price) throws CreateException, RemoteException;

    Product findByPrimaryKey(ProductPK key) throws RemoteException, FinderException;

    Enumeration findByName(String name) throws RemoteException, FinderException;

    Enumeration findByPrice(double price) throws RemoteException, FinderException;

    Enumeration findAllProducts() throws RemoteException, FinderException;
}
